//
//  MineTableViewController.swift
//  微博
//
//  Created by 吕东星 on 17/3/26.
//  Copyright © 2017年 lddongxing. All rights reserved.
//

import UIKit

class MineTableViewController: LDXVisitorTableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        if islogin {
            setupNavPush()
        }else{
        visitorView?.updateVisitor(imageName: "visitordiscover_image_profile", message: "登录后，你的微博、相册、个人资料会显示在这里，展示给别人")
        }
        
    }
    //  设置导航栏push按钮
    private func setupNavPush() {
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "push", target: self, action: #selector(pushAction))
    }
    
    //  MARK: ---   点击push按钮的操作
    @objc private func pushAction() {
        let testVc = LDXTestViewController()
        self.navigationController?.pushViewController(testVc, animated: true)
    }

}
